import { RouteRecordRaw } from 'vue-router'
const Layout = () => import('@/layout/index.vue')

const errorRoutes: RouteRecordRaw ={
  path: '/error',
  name: 'Error',
  meta: { 
    title: 'errorPages', 
    icon: 'el-icon-s-data',
    sort: 1,
  },
  component: Layout,
  children: [
    {
      path: '403',
      name: 'Page403',
      meta: { 
        title: 'page403' 
      },
      component: () => import('@/views/error-page/403.vue'),
    },
    {
      path: '404',
      name: 'Page404',
      meta: { 
        title: 'page404' 
      },
      component: () => import('@/views/error-page/404.vue'),
    },
    {
      path: '500',
      name: 'Page500',
      meta: { 
        title: 'page500' 
      },
      component: () => import('@/views/error-page/500.vue'),
    }
  ]
}

export default errorRoutes;